<template>
 <div class="father2">
  御剑乘风来,除魔天地间!==father===={{ app }}
  <button @click="handle">更改provide传过来的值</button>
  <hr/>
  <Son2></Son2>
 </div>
</template>
<script>
import Son2  from  './Son2.vue'
export default{
    name:'',
    components:{
      Son2
    },
    provide(){
      return {
        /* 需要传递的数据 */
        ff:'我是第一代  father'
      }
    },
    inject:['app','say'],
    data () {
        return {

        }
    },
    created () {

    },
    computed:{
    },
    methods:{
      handle(){
        // this.app='我是father更改了值proive的值'
        this.say('我是father2更改的app的值')
        console.log(this.app,8888);
      }
    }
}
</script>
<style lang='less'  scoped>
 
</style>